<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="context.title"/></title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript" src="${ctx}/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery-ui-1.8.22.custom.min.js"></script>
<script type="text/javascript"> 
$(function(){
	// Dialog
	$('#dialog').dialog({
		autoOpen: false,
		width: 600,
		buttons: {
			"提交": function() {
				$.post("time-control!save?d="+new Date(),{timeId:$("#timeId").val(),startDate:$("#startDate").val(),endDate:$("#endDate").val(),authId:$("#authId").val()},function(data){
					if(data != ''){
						alert(data);
					}else{
						window.location.reload();
					}
					});
				$(this).dialog("close");
			},
			"取消": function() {
				clean();
				
				$(this).dialog("close");
			}
		}
	});
 
 
});

function clean(){
	$("#timeId").val("");
	$("#authId").val("");
	$("#startDate").val("");
	$("#endDate").val("");
}

function _getDate(id,aid){
	$("#timeId").val(id);
	$("#authId").val(aid);
	$("#startDate").val($("#start-" + id).val());
	$("#endDate").val($("#end-" + id).val());
	$('#dialog').dialog('open');
}

function setEffective(id,obj){
	var f = 0;
	if(obj.checked){
		f = 1;
	}
		$.post("time-control!setEffective?d="+new Date(),{authId:id,used:f},function(data){
			if(data != ''){
				alert(data);
			}		
			});
}
</script>

</head>
<body>
<br/>
<p align="center"><s:actionmessage theme="mytheme" cssClass="actionMessage"/></p>



<h1 class="title01"><img src="${ctx}/images/02_15.gif" width="45" height="42" class="fl"/><a href="system!input">添加系统参数</a>系统参数 </h1>
<table id="contentTable" class="table_ys tableColor">
	<tr>
		<th nowrap="nowrap" colspan="">序号</th>
		<th nowrap="nowrap">类别名称</th>
		<th nowrap="nowrap"><a href="javascript:sort('collegeName','asc')">参数代码</a></th>
		<th nowrap="nowrap"><a href="javascript:sort('groupName','asc')">参数名称</a></th>
		<th nowrap="nowrap"><a href="javascript:sort('type','asc')">参数备注</a></th>
		<th nowrap="nowrap">操作</th>
	</tr>
	<s:iterator value="systemList" var="v" status="st">
	<tr>
		<td>${st.index + 1 }&nbsp;</td>
		<td>${v.systemCategory.pknm }&nbsp;</td>
		<td>${pmcd }&nbsp;</td>
		<td>${pcnm }&nbsp;</td>
		<td>${memo }&nbsp;</td>
		<td><a href="system!input?id=${v.id }">修改</a>、<a href="system!delete?id=${v.id }" onClick="return confir('确定删除?')">删除</a>&nbsp;</td>
	</tr>
	</s:iterator>
</table>
</body>

</html>